<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Performance test with URL</title>
<script type="text/javascript" src="../js/chartAjaxAPI.js"></script>
<script type="text/javascript">
	function generateChart() {
		var startTime = new Date().getTime();
		var chart = new BirtChart();
		chart.setDataURL(getDataURL());
		chart.setStartTime(startTime);
		chart.render("chartDiv");
	}
	
	function getDataURL() {
		var url = "perf/dataPerf10.xml";
		var strloc = new String(location);
		var startIndex = strloc.indexOf("dataURL=");
		if (startIndex >= 0) {
			url = strloc.substring(startIndex + 8);
		}
		return url;
	}
</script>
</head>
<body onload="generateChart()">
<div id="chartDiv"></div>
</body>
</html>